<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>佛经管理后台</title>

    <!-- Bootstrap -->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Datatables -->
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
    <link href="/static/css/main.css" rel="stylesheet">

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="profile clearfix text-center">
              <div class="profile_info">
                <div class="welcome">Welcome</div>
              </div>

            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            </div>
            <div class="sidebar-footer hidden-small">
              <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
              </a>
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <li><a href="login.html">Log Out</a></li>
                  </a>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        

        <div class="right_col" role="main">
        <div id="main">



          <div><div class="row"><div class="col-md-12 col-sm-12 col-xs-12">
          <div class="x_panel"><div class="x_title"><h2>更新经书</h2>
          <ul class="nav navbar-right panel_toolbox"><li>
          <a href="javascript:history.go(-1);"></a>
          </li></ul><div class="clearfix"></div></div>
          <br><form class="form-horizontal form-label-left" onsubmit="return false" id="create_edition_form" enctype="multipart/form-data">
          <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">经书名称<span class="required">*</span></label>
          <div class="col-md-6 col-sm-6 col-xs-12">
          <input type="text" id="edition_name" name="name" required="required" class="form-control col-md-7 col-xs-12" data-parsley-id="5">
           <ul class="parsley-errors-list"><li>This value is required.</li></ul>
          </div></div>
          <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">
          经书文字<span class="required">*</span></label>
          <div class="col-md-2 col-sm-6 col-xs-12">
          <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="char_txt" name="char_txt">
          只支持txt文件</div><div class="col-md-3 col-sm-6 col-xs-12">
          <a id="char_url"></a></div></div>
          <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">
           经书分类<span class="required">*</span></label>
          <div class="col-md-6 col-sm-6 col-xs-12">
          <select id="sutras_category" name="sutras_category" class="form-control input-sm">
          </select>
           <ul class="parsley-errors-list"><li>This value is required.</li></ul>
          </div></div>
           <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">经书页数<span class="required">*</span></label>
          <div class="col-md-2 col-sm-6 col-xs-12">
          <input type="text" id="edition_page_num" name="name" required="required" class="form-control col-md-7 col-xs-12" data-parsley-id="5">
           <ul class="parsley-errors-list"><li>This value is required.</li></ul>
          </div><label class="control-label" for="first-name">页</label>
           </div>
          <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">珍藏版价格<span class="required">*</span></label>
          <div class="col-md-2 col-sm-6 col-xs-12">
          <input type="text" id="edition_price" name="name" required="required" class="form-control col-md-7 col-xs-12" data-parsley-id="5">
           <ul class="parsley-errors-list"><li>This value is required.</li></ul>
          </div><label class="control-label" for="first-name">元</label>
          </div>
          <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">
          经书封面<span class="required">*</span></label>
          <div class="col-md-2 col-sm-6 col-xs-12">
          <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="edition_img" name="edition_img">
          </div><div class="col-md-3 col-sm-6 col-xs-12">
          <a id="edition_img_url">sss</a></div></div>
          <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">经书详情介绍<span class="required">*</span></label>
          <div class="col-md-6 col-sm-6 col-xs-12">
          <textarea required="required" class="form-control col-md-7 col-xs-12" id="edition_desc" name="desc" data-parsley-minlength="10" data-parsley-maxlength="400"  data-parsley-validation-threshold="10" style="height: 131px;">
          </textarea><ul class="parsley-errors-list">
          <li>This Message (10 chars min, 100 max).</li></ul></div></div>
          <div class="ln_solid"></div><div class="form-group">
          <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
          <button class="btn btn-primary" type="reset">重置</button>
          <button type="submit" class="btn btn-success" id="update_edition">
          提交</button></div></div></form></div></div></div></div>

        </div>
        </div>

        <footer>
          <div class="pull-right">
            by py69
          </div>
          <div class="clearfix"></div>
        </footer>
      </div>
    </div>

    <script id="sclist" type="text/template">
      <option value="-1">无</option>
      <option id= "sc_0" value="0">所有分类</option>
      {{ for (var i = 0, l = it.data.length; i < l; i++) { }}
        <option id= "sc_{{=it.data[i].id}}" value="{{=it.data[i].id}}">{{=it.data[i].name}}</option>
      {{ } }}
    </script>

    <!-- jQuery -->
    <script src="/static/js/element.js"></script>
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <script src="/static/js/dot.min.js"></script>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/edition_update.js"></script>
    <!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="../vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="../vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="../vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script id='hahah' src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="../vendors/jszip/dist/jszip.min.js"></script>
    <script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="../vendors/pdfmake/build/vfs_fonts.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>

    <script>
      $("#sidebar-menu").load("sidebar.html", null, init_sidebar);
    </script>

  </body>
</html>